from flask_migrate import Migrate
from config import Config
from src.router import Router
from src.server import Http
from src.pkg.sqlalchemy import SQLAlchemy
from app.http.module import injector
from redis import Redis
config = Config()
app = Http(__name__, config=config, db=injector.get(SQLAlchemy), router=injector.get(Router),
           migrate=injector.get(Migrate),redis_client=injector.get(Redis))
if __name__ == "__main__":
    app.run(host='0.0.0.0')

